<?php //print "Jodas.....";exit;
/**
 * Clase Base para conexión a base de datos.
 *
 *
 */

//require_once("../../../../generales/lib/bd/bdAdo5.php");

 class baseModel
 {
 	protected $bd="";

     function __construct()
     {
        $this->bd=new bdAdo5();

     }

   function __destruct() {
          $this->bd->closed();
   }

   function select($sql)
	{
		 $rs=$this->bd->select($sql);
		 if ($rs)
		 {
		 	return $rs->GetArray();
		 }else{
		 	return array();
		 }
	}

   function actualizar($sql)
    {
      $rs = $this->bd->actualizar($sql);
    }

    function setUpdateInsert($table, $arrFields, $mode, $where, $forceUpdate, $magicq){
       $rs = $this->bd->setAutoSql($table, $arrFields, $mode, $where, $forceUpdate, $magicq);
    }
 }
